package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YwLabourinfoMapper;
import com.ruoyi.system.domain.YwLabourinfo;
import com.ruoyi.system.service.IYwLabourinfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * labourinfoService业务层处理
 * 
 * @author ruoyi
 * @date 2020-04-14
 */
@Service
public class YwLabourinfoServiceImpl implements IYwLabourinfoService 
{
    @Autowired
    private YwLabourinfoMapper ywLabourinfoMapper;

    /**
     * 查询labourinfo
     * 
     * @param id labourinfoID
     * @return labourinfo
     */
    @Override
    public YwLabourinfo selectYwLabourinfoById(Long id)
    {
        return ywLabourinfoMapper.selectYwLabourinfoById(id);
    }

    /**
     * 查询labourinfo列表
     * 
     * @param ywLabourinfo labourinfo
     * @return labourinfo
     */
    @Override
    public List<YwLabourinfo> selectYwLabourinfoList(YwLabourinfo ywLabourinfo)
    {
        return ywLabourinfoMapper.selectYwLabourinfoList(ywLabourinfo);
    }

    /**
     * 新增labourinfo
     * 
     * @param ywLabourinfo labourinfo
     * @return 结果
     */
    @Override
    public int insertYwLabourinfo(YwLabourinfo ywLabourinfo)
    {
        return ywLabourinfoMapper.insertYwLabourinfo(ywLabourinfo);
    }

    /**
     * 修改labourinfo
     * 
     * @param ywLabourinfo labourinfo
     * @return 结果
     */
    @Override
    public int updateYwLabourinfo(YwLabourinfo ywLabourinfo)
    {
        return ywLabourinfoMapper.updateYwLabourinfo(ywLabourinfo);
    }

    /**
     * 删除labourinfo对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYwLabourinfoByIds(String ids)
    {
        return ywLabourinfoMapper.deleteYwLabourinfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除labourinfo信息
     * 
     * @param id labourinfoID
     * @return 结果
     */
    @Override
    public int deleteYwLabourinfoById(Long id)
    {
        return ywLabourinfoMapper.deleteYwLabourinfoById(id);
    }
}
